//
//  UIControl+Extension.swift
//  Skeleton
//
//  Created by hubin on 2025/7/12.
//

import UIKit

// 扩展 UIControl.State 以便遍历
extension UIControl.State: @retroactive CaseIterable {
    public static var allCases: [UIControl.State] {
        return [.normal, .highlighted, .disabled, .selected, .focused]
    }
}

extension UIControl.State: @retroactive Hashable {
    public func hash(into hasher: inout Hasher) {
        hasher.combine(rawValue)
    }
}

